package com.example.data0306.Adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.example.data0306.R;
import com.example.data0306.bean.CompetitionBean;

import org.jetbrains.annotations.NotNull;

public class CompetitionAdapter extends BaseQuickAdapter<CompetitionBean, BaseViewHolder> {

    public CompetitionAdapter() {
        super(R.layout.feagment_competition_02);
    }

//    @Override
//    protected void convert(@NotNull BaseViewHolder baseViewHolder, CompetitionAdapter newsArticleBean) {

//        baseViewHolder.setText(R.id.tv_zhibo,"最新赛程");
//        baseViewHolder.setText(R.id.tv_article_title1,"全部直播");
//        baseViewHolder.setImageResource(R.id.img_coverright,R.drawable.smallright);
//
//        baseViewHolder.setText(R.id.view_shijian1,"即将开始 17:00");
//        baseViewHolder.setImageResource(R.id.icon_duibiao1,R.drawable.icon_duibiaorng);
//        baseViewHolder.setText(R.id.bifeng1,"0:0");
//        baseViewHolder.setImageResource(R.id.icon_duibiao2,R.drawable.icon_duibiaolgd);
//        baseViewHolder.setText(R.id.view_duiming1,"RNG");
//        baseViewHolder.setText(R.id.view_duiming2,"LGD");
//        baseViewHolder.setText(R.id.liansai1,"2021职业联赛");
//
//        baseViewHolder.setText(R.id.view_shijian2,"即将开始 17:00");
//        baseViewHolder.setImageResource(R.id.icon_duibiao3,R.drawable.icon_duibiaorng);
//        baseViewHolder.setText(R.id.bifeng2,"0:0");
//        baseViewHolder.setImageResource(R.id.icon_duibiao4,R.drawable.icon_duibiaolgd);
//        baseViewHolder.setText(R.id.view_duiming3,"RNG");
//        baseViewHolder.setText(R.id.view_duiming4,"LGD");
//        baseViewHolder.setText(R.id.liansai2,"2021职业联赛");
//
//        baseViewHolder.setBackgroundColor(R.id.button01,rgb(255, 10, 10));
//        baseViewHolder.setBackgroundColor(R.id.button02,rgb(255, 10, 10));
//        baseViewHolder.setBackgroundColor(R.id.button03,rgb(255, 10, 10));
//        baseViewHolder.setBackgroundColor(R.id.button04,rgb(255, 10, 10));
//        baseViewHolder.setBackgroundColor(R.id.button05,rgb(255, 10, 10));
//
//        baseViewHolder.setText(R.id.biaoqian1,"全部赛程");
//        baseViewHolder.setText(R.id.biaoqian2,"赛况数据");
//        baseViewHolder.setText(R.id.biaoqian3,"赛事视频");
//        baseViewHolder.setText(R.id.biaoqian4,"俱乐部");
//        baseViewHolder.setText(R.id.biaoqian5,"赛事购票");


//        baseViewHolder.setText(R.id.tv_article_title,newsArticleBean.getTitle());
//        //baseViewHolder.setImageResource(R.id.img_cover,R.drawable.icon_navigation_head_info_bg);
//        baseViewHolder.setImageResource(R.id.img_cover,newsArticleBean.getIcon());
//        baseViewHolder.setText(R.id.tv_tag,"LOL");
//        baseViewHolder.setText(R.id.tv_article_user,"史努比");
//        baseViewHolder.setText(R.id.tv_view_number,"12332");
//    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, CompetitionBean competitionBean) {

        baseViewHolder.setText(R.id.tv_zhibo,competitionBean.getTitle1());
        baseViewHolder.setText(R.id.tv_article_title1,competitionBean.getTitle1());
        baseViewHolder.setImageResource(R.id.img_coverright,competitionBean.getIcon1());

        baseViewHolder.setText(R.id.view_shijian1,competitionBean.getTitle1());
        baseViewHolder.setImageResource(R.id.icon_duibiao1,competitionBean.getIcon1());
        baseViewHolder.setText(R.id.bifeng1,competitionBean.getTitle1());
        baseViewHolder.setImageResource(R.id.icon_duibiao2,competitionBean.getIcon1());
        baseViewHolder.setText(R.id.view_duiming1,competitionBean.getTitle1());
        baseViewHolder.setText(R.id.view_duiming2,competitionBean.getTitle1());
        baseViewHolder.setText(R.id.liansai1,competitionBean.getTitle1());

        baseViewHolder.setText(R.id.view_shijian2,competitionBean.getTitle1());
        baseViewHolder.setImageResource(R.id.icon_duibiao3,competitionBean.getIcon1());
        baseViewHolder.setText(R.id.bifeng2,competitionBean.getTitle1());
        baseViewHolder.setImageResource(R.id.icon_duibiao4,competitionBean.getIcon1());
        baseViewHolder.setText(R.id.view_duiming3,competitionBean.getTitle1());
        baseViewHolder.setText(R.id.view_duiming4,competitionBean.getTitle1());
        baseViewHolder.setText(R.id.liansai2,competitionBean.getTitle1());

        baseViewHolder.setText(R.id.biaoqian1,"全部赛程");
        baseViewHolder.setText(R.id.biaoqian2,"赛况数据");
        baseViewHolder.setText(R.id.biaoqian3,"赛事视频");
        baseViewHolder.setText(R.id.biaoqian4,"俱乐部");
        baseViewHolder.setText(R.id.biaoqian5,"赛事购票");

    }
}

//public class CompetitionAdapter {
//}
